﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using Snowdreamist.ComponentModel.MEF.Notification;
using Snowdreamist.Windows.Notification;

namespace SNSpirit.Views.Notification
{
    [NotificationConsumerExport(NotificationScope.System)]
    [PartCreationPolicy(CreationPolicy.Shared)]
    public class SystemNotificationConsumer : INotificationConsumer
    {
        public void HandleNotification(IEnumerable<NotificationJob> jobs)
        {
            foreach (var job in jobs)
            {
                this.HandleAndWaitNotification(job);
            }
        }

        protected virtual void HandleAndWaitNotification(NotificationJob job)
        {
        }
    }
}